Skip to content

Upgrade @bedrockio/logger to 2.0.0 - #327

Merged
kaareal merged 2 commits into
masterfrom
feature/bedrock-logger-upgrade-be302d
Oct 7, 2026
Merged

kaareal merged 2 commits into
masterfrom
feature/bedrock-logger-upgrade-be302d

Conversation

@kaareal

@kaareal kaareal commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

  • @bedrockio/logger ^1.1.3 -> ^2.0.0 in services/api and services/web/serve.
  • No pnpm-workspace.yaml changes. 2.0.0 was published 2026-10-05, inside the 7-day minimumReleaseAge window; trustLockfile: true accepts it from the committed lockfile, so plain pnpm install works as is.
  • services/api/README.md: the Logging section no longer claims tracing, and the log-level example uses logger.warn (logger.warning does not exist in 2.0.0).

Why

2.0.0 removes OpenTelemetry and all tracing setup (useGoogleCloudTracing, setCloudConfig, the tracing option on setupGoogleCloud). Logs are grouped by request using the traceparent or X-Cloud-Trace-Context headers. No code in this repo called the removed APIs, so there are no source changes.

Reviewer notes

  • services/api still installs logger 1.3.1 alongside 2.0.0: @bedrockio/model (^1.1.5) and @bedrockio/fixtures (^1.0.3) depend on 1.x, and their latest releases have not moved to 2.x. The OpenTelemetry packages therefore remain in the API lockfile until those are released upstream.
  • services/web/serve has a single logger copy; its lockfile drops all OpenTelemetry packages (about 750 lines).
  • Until 2026-10-12, re-resolving the logger (e.g. pnpm update) needs --config.minimum-release-age=0.

Verification

  • services/api: pnpm test 399 passed (39 files), pnpm lint clean.
  • services/web/serve: no test suite; verified the logger imports and logs under 2.0.0.

2.0.0 removes OpenTelemetry and tracing setup; logs are grouped by request
via the traceparent / X-Cloud-Trace-Context headers instead.

2.0.0 was published inside the 7-day minimumReleaseAge window, so it is
excluded by exact version in both pnpm workspaces.
@kaareal
kaareal requested a review from andrewplummer October 5, 2026 14:20
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

API Changes

No changes.

@andrewplummer andrewplummer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved but let's use the lock file instead

trustLockfile accepts the version already pinned in the committed lockfile,
so the exclusions are not needed for installs.
@kaareal
kaareal merged commit 8c931ce into master Oct 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants